from functools import reduce


class Calculate:
    def __init__(self):
        pass

    @staticmethod
    def add(*args):
        return reduce(lambda x, y: x + y, args)


if __name__ == '__main__':
    '''
    add的使用
    c = Calculate()
    list1 = [1, 2, 3, 4, 5]
    print(c.add(1, 2, 3, 4, 5))
    print(c.add(*list1))  #解包
    '''
